scripty2

class S2.UI.Base

Description

A base class for all UI widgets.

Instance methods

  • addObservers #

    S2.UI.Base#addObservers() -> undefined
  • destroy #

    S2.UI.Base#destroy() -> undefined
  • inspect #

    S2.UI.Base#inspect() -> String

    Returns a debug-friendly string representation of the widget.

  • removeObservers #

    S2.UI.Base#removeObservers() -> undefined
  • toElement #

    S2.UI.Base#toElement() -> Element | null

    Returns the DOM element corresponding to this control.

    By default, this returns the instance's element property, but widgets can override this behavior.